/**
 * 
 */
package com.qf.apps;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;
import org.springframework.web.servlet.mvc.SimpleFormController;

import com.qf.apps.vo.UserForm;
import com.qf.domain.User;
import com.qf.service.UserService;

/**
 * @author 123
 * 
 */
public class ListUserController implements Controller {
	private UserService userService;

	public ModelAndView handleRequest(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		List list = this.userService.listAll();
		return new ModelAndView("user/listUser","list",list);
	}

	public UserService getUserService() {
		return userService;
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
	}

}
